package com.cx.bank.mapper;

import com.cx.bank.pojo.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.junit.Test;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;


@Mapper
@Repository

public interface UserMapper {
    boolean saveMoney(UserBean userBean) ;
    void insertUser(UserBean userBean);
    void updateMoney(UserBean userBean,int money);
    UserBean findUserByName (String userName) ;
    boolean findByName(String  userName);
    UserBean findUser(String userName,String password) ;
    void setState(UserBean userBean);
    int userSum();
    int findUserIdByUserName(String userName);
    List<UserBean> findUsers();
}
